home *** CD-ROM | disk | FTP | other *** search
/ Developer Source 7 / developer source - volume 7.iso / delph / oct95 / wagnf108.gif < prev    next >
Graphics Interchange Format  |  1996-11-16  |  38KB  |  390x332  |  4-bit (16 colors)
Labels: text | screenshot | font | document | number
OCR: Type Definition Register optimizations Frequently used variables are placed into CPU registers to shorten the time it takes to access them. Additionally, the scope of variables is analyzed to determine when registers can be reused Call-stack overhead Parameters are passed into CPU registers elimination when possible rather than being pushed onto the stack Common subexpression Repeated expressions in complex mathe- elimination matical calculations are eliminated, so that no common subexpression runs more than once. This allows you to construct complex math algorithms that are easy to read, and let the compiler worry about optimizing the operation. Loop induction variables| Loop induction variables are used to decrease the amount of time it takes to access arrays or strings within loops (e.g. a for loop).